<?php
$request = $_SERVER['argv'][6];

$apps = array('/www/mpe/','/www/saas/','/www/payment/','/www/offer/','/www/quote/');
$target = "";
foreach ($apps as $value){
    if( strpos($request,$value) !==  false ){
        $target = $value;
        break;
    }
}
if( $target ){
    $phpunit_entry =__DIR__.$target."phpunit.php";
    if( is_file($phpunit_entry) ) {
        include $phpunit_entry;
    }else{
        die("APP Entry File Not Found! PHPUnit Exit Exception");
    }
}else{
    die("APP Not Found! PHPUnit Exit Exception");
}
